package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
@Entity
@Table(name = "bai_viet")
@NamedQueries({
        @NamedQuery(name = "getAllPost", query = "SELECT c FROM BaiViet c"),
})
public class BaiViet implements Serializable {

    public static final String GET_ALL_POST = "getAllPost";

    @Id
    @Column(name = "MA_BV")
    private String maBV;

    @ManyToOne
    @JoinColumn(name = "MA_DM_BV")
    private DanhMucBaiViet danhMucBaiViet;

    @Column(name = "TIEU_DE")
    private String tieuDe;

    @Column(name = "TOM_TAT")
    private String tomTat;

    @Column(name = "NGAY_VIET")
    private Date ngayViet;

    @Column(name = "NOI_DUNG")
    private String noiDung;

    @Column(name = "HINH_ANH")
    private String hinhAnh;

    public String getMaBV() {
        return maBV;
    }

    public void setMaBV(String maBV) {
        this.maBV = maBV;
    }

    public DanhMucBaiViet getDanhMucBaiViet() {
        return danhMucBaiViet;
    }

    public void setDanhMucBaiViet(DanhMucBaiViet danhMucBaiViet) {
        this.danhMucBaiViet = danhMucBaiViet;
    }

    public String getTieuDe() {
        return tieuDe;
    }

    public void setTieuDe(String tieuDe) {
        this.tieuDe = tieuDe;
    }

    public String getTomTat() {
        return tomTat;
    }

    public void setTomTat(String tomTat) {
        this.tomTat = tomTat;
    }

    public Date getNgayViet() {
        return ngayViet;
    }

    public void setNgayViet(Date ngayViet) {
        this.ngayViet = ngayViet;
    }

    public String getNoiDung() {
        return noiDung;
    }

    public void setNoiDung(String noiDung) {
        this.noiDung = noiDung;
    }

    public String getHinhAnh() {
        return hinhAnh;
    }

    public void setHinhAnh(String hinhAnh) {
        this.hinhAnh = hinhAnh;
    }
}
